import request from '@/utils/request.js'
import Qs from 'qs'
// 增
export const addDishInfoAPI = function (token, data) {
  return request({
    method: 'POST',
    url: '/my/addDishInfo',
    headers: {
      Authorization: token
    },
    data: Qs.stringify(data)
  })
}
// 删
export const delDishInfoAPI = function (token, data) {
  return request({
    method: 'POST',
    url: '/my/deldish',
    headers: {
      Authorization: token
    },
    data: Qs.stringify(data)
  })
}
// 改
export const updateDishInfoAPI = function (token, data) {
  return request({
    method: 'POST',
    url: '/my/updatedish',
    headers: {
      Authorization: token
    },
    data: Qs.stringify(data)
  })
}
// 查
export const getDishInfoAPI = function (token) {
  return request({
    method: 'GET',
    url: '/my/getdishinfo',
    headers: {
      Authorization: token
    }
  })
}
